package com.feib.ebilling.job.service;

import java.util.Date;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.PlatformTransactionManager;

import com.feib.ebilling.job.dao.TransferFeedbackDao;



@Service("transferFeedbackService")
public class TransferFeedbackService extends BaseService {
	
	
	@Resource(name="transferFeedbackDao")
	private TransferFeedbackDao transferFeedbackDao;
	
	@Resource(name="txManager")
	private PlatformTransactionManager transactionManager;


	/**
	 * 檢查帳單資料是否已批次產生
	 * @param channels
	 * @param transferDate
	 * @return
	 */
	public List<String> hasProduced(List<String> channels,Date transferDate) {
		return transferFeedbackDao.hasProduced(channels, transferDate);
	}
	
	
	public int doTransferFeedback(List<String> channels,Date fbtime){
		return transferFeedbackDao.doTransferFeedback(channels, fbtime);
	}
	
}
